package com.zhuifeng.smart.util;

import javax.servlet.http.HttpServletRequest;

public class ActionUtil {
	public static String getBaseUrl(HttpServletRequest request) {
		String baseUrl = request.getScheme() + "://" + request.getServerName()
				+ ":" + request.getServerPort();
		baseUrl += request.getContextPath() + "/";
		return baseUrl;
	}
}
